<?php
/*
 * @Description: 
 * @Author: xiao li
 * @Date: 2021-12-01 15:53:12
 * @LastEditTime: 2021-12-07 19:14:18
 * @LastEditors: xiao li
 */
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */


$carSearch = <<<CARSEARCH
{"title":"搜索栏","type":"carSearch","iconPath":"iconsousuo","isDelete":true,"addNumber":1,"attr":[{"title":"是否显示LOGO","type":"Switch","name":"isShowLogo"},{"title":"LOGO图片","type":"UploadImage","desc":"160*66","name":"logo"}],"data":{"placeholder":"搜索文章名称","isShowLogo":true,"logo":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}}
CARSEARCH;

$carArticle = <<<CARARTICLE
 {"title":"文章列表","type":"carArticleList","icon":"iconStaffIntroduce","isDelete":true,"addNumber":1,"attr":[],"data":{"title":"文章列表","dataList":[]}}
CARARTICLE;

$search = <<<SEARCH
{"title":"搜索栏","type":"search","iconPath":"iconsousuo","isDelete":true,"addNumber":1,"attr":[],"data":{"placeholder":"搜索汽车名称"}}
SEARCH;

$carList = <<<CARLIST
{"title":"汽车列表","type":"carList","icon":"icon-che","isDelete":true,"addNumber":1,"attr":[],"data":{"title":"汽车列表","dataList":[]}}
CARLIST;



//模块组件 后台DIY页面的左侧

return [

    [
        "title" => "业务组件",
        'type' => 'carHomeCompoent',
        "data" => [
            json_decode($carSearch, true),

            json_decode($carArticle, true),
        ]
    ],
    [
        "title" => "业务组件",
        'type' => 'carListCompoent',
        "data" => [
            json_decode($search, true),
            
            json_decode($carList, true),
        ]
    ]

];